Skip to content

Do not treat stopped children as exited - #201

Open
OskarEichler wants to merge 2 commits into
enkessler:masterfrom
OskarEichler:codex/ignore-stopped-children
Open

Do not treat stopped children as exited#201
OskarEichler wants to merge 2 commits into
enkessler:masterfrom
OskarEichler:codex/ignore-stopped-children

Conversation

@OskarEichler

Copy link
Copy Markdown

Removes WUNTRACED from nonblocking exit polling so a merely stopped child is not cached as an exited process.

Verified with 70 upstream examples plus a focused stop, continue, and exit lifecycle model.

@eregon

eregon commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Would need a test demonstrating the issue

@OskarEichler

Copy link
Copy Markdown
Author

Added a real lifecycle regression: it starts a child, sends SIGSTOP, waits until ps reports the stopped state, verifies exited? remains false, then continues and stops the child. The focused Unix spec passes (6 examples).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants